package com.zodiac.app.szse.sse.kcb;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class KcbProjectDynamicResponse {

    private String isPagination;
    private FieldErrorsBean fieldErrors;
    private PageHelpBean pageHelp;
    private String validateCode;
    private String locale;
    private String type;
    private ErrorsBean errors;
    private String jsonCallBack;
    private List<?> actionErrors;
    private List<ResultBean> result;
    private List<?> errorMessages;
    private List<?> actionMessages;
    private List<StatisticsBean> statistics;

    @NoArgsConstructor
    @Data
    public static class FieldErrorsBean {
    }

    @NoArgsConstructor
    @Data
    public static class PageHelpBean {
        private int pageCount;
        private int cacheSize;
        private int pageSize;
        private int total;
        private int beginPage;
        private int pageNo;
        private int endPage;
    }

    @NoArgsConstructor
    @Data
    public static class ErrorsBean {
    }

    @NoArgsConstructor
    @Data
    public static class ResultBean {
        private String updateDate;
        private double planIssueCapital;
        private String wenHao;
        private String stockAuditName;
        private int currStatus;
        private String stockAuditNum;
        private String registeResult;
        private int collectType;
        private String createTime;
        private String auditApplyDate;
        private String issueAmount;
        private String commitiResult;
        private int issueMarketType;
        private List<IntermediaryBean> intermediary;
        private List<StockIssuerBean> stockIssuer;

        @NoArgsConstructor
        @Data
        public static class IntermediaryBean {
            private String auditId;
            private int i_intermediaryType;
            private String i_intermediaryId;
            private String i_intermediaryAbbrName;
            private String i_intermediaryName;
            private List<IPersonBean> i_person;

            @NoArgsConstructor
            @Data
            public static class IPersonBean {
                private String i_p_personName;
                private int i_p_jobType;
                private String i_p_personId;
                private String i_p_jobTitle;
            }
        }

        @NoArgsConstructor
        @Data
        public static class StockIssuerBean {
            private String s_personName;
            private String auditId;
            private String s_stockIssueId;
            private String s_personId;
            private String s_issueCompanyFullName;
            private String s_csrcCode;
            private String s_jobTitle;
            private String s_issueCompanyAbbrName;
            private String s_csrcCodeDesc;
            private String s_province;
            private String s_areaNameDesc;
            private String s_companyCode;
        }
    }

    @NoArgsConstructor
    @Data
    public static class StatisticsBean {
        private int num;
        private String status;
    }
}
